#include "interface/define.h"
//
// Created by 邹嘉旭 on 2025/8/8.
//
cn_format_desc_t *get_non_sequential_desc(size_t format_size, cn_format_desc_t *descs, uint64_t target_type) {
    for (int i = 0; i < format_size; i++) {
        cn_format_desc_t *desc = &descs[i];
        if (desc->type == target_type) {
            return desc;
        }
    }
    return NULL;
}


